package com.dragons.spring5.aop.annotation;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestAopAnnotation {
    @Test
    public void testService2() {
        ApplicationContext context = new AnnotationConfigApplicationContext(ConfigAop.class);
        User4 user4 = context.getBean("user4", User4.class);
        user4.add();
    }

}
